<?php
/**
 * CK 开发框架
 * User: Clake
 * Date: 15/9/12
 * Time: 11:37
 */

namespace CK\Ex;
use CK\Database\DBA;

/**
 * Class ExDatabase
 * 数据库异常类
 * @package CK\Ex
 */
class ExDatabase extends \Exception{
    public function __construct($msg) {
        $sql = DBA::inst()->sql_str;
        $message = "
            $msg\n
            -------------------------------
            $sql
        ";
    }
}